package com.example.feifei.net;

import com.example.feifei.bean.AdressBean;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by feifei on 2018/6/5.
 */

public interface ApiService {
    /**
     * 测试网络请求
     */
    @GET(UrlManager.QUERYURL)
    Observable<String> queryUrl(@QueryMap Map<String,String> map);

    /**
     * 百度获取地址接口
     */
    @GET("geocoder")
    Observable<AdressBean> queryAddress(@QueryMap Map<String,String> map);

}
